<?php

namespace App\Http\Model;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Redis;


class HdUser extends Base
{
    protected $connection = 'mysql_center';
    protected $table = 'user';
    public function __construct(array $attributes = [])
    {
        parent::__construct($this->table, $attributes);
    }

    /*
     * 查询用户信息
     * */
    public function showUserInfo($user_id){
        $users = DB::connection('mysql_center::user')->select();
        dd($users);
        return  self::objToArray($users);

    }


}